﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using famails.iface;
using famails.dao;
using famails.dto;

namespace famails.bus
{
    /// <summary>
    /// Summary description for AccountLimitBUS
    /// </summary>
    public class AccountLimitBUS
    {
        AccountLimitDAO sign = null;
        public AccountLimitBUS()
        {
            sign = new AccountLimitDAO();
        }
        public void tblAccountLimit_insert(AccountLimitDTO dt)
        {
            sign.tblAccountLimit_insert(dt);
        }
        public void tblAccountLimit_Delete(int limitId)
        {
            sign.tblAccountLimit_Delete(limitId);
        }
        public System.Data.DataTable GetAll()
        {
            return sign.GetAll();
        }

        public System.Data.DataTable GetByUserIdAccountLimit(int limitId)
        {
            return sign.GetByUserIdAccountLimit(limitId);
        }
        public void tblAccountLimit_Update(AccountLimitDTO dt)
        {

            sign.tblAccountLimit_Update(dt);
        }
        public DataTable GetAvailableAccount(int limitId)
        {
            return sign.GetAvailableAccount(limitId);
        }
        public DataTable viladate_Accountlimint(string under, object id)
        {
            return sign.viladate_Accountlimint(under, id);
        }
        public DataTable check_delete_Account(int limitId)
        {
            return sign.check_delete_Account(limitId);

        }
        public DataTable check_delete_clientregister(int limitId)
        {
            return sign.check_delete_clientregister(limitId);
        }

    }
}